package com.qxbb.report.utils;



import com.qxbb.report.utils.spring.SpringUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Xie
 */
@Slf4j
public class BannerUtils {


    /**
     * 打印banner内容
     **/
    public static void printBanner() {
        log.info("-----------------------------------------------------------------------------");
        log.info("{}应用程序版本:   {}" +
                        ".{} ",
                SpringUtils.getProperty("ejiaoyi.name"),
                SpringUtils.getProperty("ejiaoyi.mouldeName"),
                SpringUtils.getProperty("ejiaoyi.packaging"));
        log.info("JDK:{}", SpringUtils.getProperty("java.version"));
        log.info("redis 服务：{}:{}", SpringUtils.getProperty("spring.redis.host"), SpringUtils.getProperty("spring.redis.port"));
        log.info("程序启动:http://localhost:{}{}", SpringUtils.getProperty("server.port"), SpringUtils.getProperty("server.servlet.context-path"));
        log.info("文档地址:http://localhost:{}{}/doc.html", SpringUtils.getProperty("server.port"), SpringUtils.getProperty("server.servlet.context-path"));
        log.info("-----------------------------------------------------------------------------");
    }

}
